package com.qd.pay.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
 * @author sjk
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_order_wx")
public class OrderWx extends Model<OrderWx> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "order_id", type = IdType.ASSIGN_ID)
    private String orderId;

    @TableField("mch_id")
    private String mchId;

    @TableField("device_info")
    private String deviceInfo;

    @TableField("nonce_str")
    private String nonceStr;

    @TableField("sign")
    private String sign;

    @TableField("sign_type")
    private String signType;

    @TableField("trade_type")
    private String tradeType;

    @TableField("bank_type")
    private String bankType;

    @TableField("openid")
    private String openid;

    @TableField("wxorgid")
    private String wxorgid;

    @TableField("wx_account_type")
    private String wxAccountType;

    public void freeData() {
        this.orderId = null;
        this.mchId = null;
        this.deviceInfo = null;
        this.nonceStr = null;
        this.sign = null;
        this.signType = null;
        this.tradeType = null;
        this.bankType = null;
        this.openid = null;
        this.wxorgid = null;
        this.wxAccountType = null;
    }

}
